package com.cjq.core.filter.impl;

import com.cjq.core.filter.GatewayFilter;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.FullHttpResponse;
import org.springframework.stereotype.Component;

@Component
public class AuthFilter implements GatewayFilter {

    @Override
    public FullHttpResponse postFilter(FullHttpRequest request, FullHttpResponse response) {
        return response;
    }

    @Override
    public boolean filter(FullHttpRequest request, ChannelHandlerContext ctx) {
        return true;
    }
}
